package com.dz.dao;

import com.dz.bean.student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface studentMapper {
    int insert(student record);

    student selectByPrimaryKey(Integer userid);
    int insertSelective(student record);

    List<student> selectLike(student record);
     List<student> selectLogin(student record);

    /**
     * 使用注解的方式进行传递
     * @return
     */
     List<student> selectLike1(@Param("userB") student userB, @Param("isDESC") Boolean isDESC) ;

    int updateStudent(student record);

    int deleteStudent(Integer userid);

    List<student> selectForeach(List<Integer> list);
}